package br.edu.fatec.ratoninja;

import java.util.ArrayList;
import java.util.List;

import android.graphics.Canvas;


public class GameLevel {
	private List<Tile> map; //teste
	private List<Tile> unpassableTiles;
	private int width;
	private int height;
	
	public GameLevel(int w, int h) {
		map = new ArrayList<Tile>(w*h); //(height => linhas e width => colunas
		unpassableTiles = new ArrayList<Tile>(0);
		width = w;
		height = h;
	}
	
	public List<Tile> getMap() {
		return map;
	}
		
	public List<Tile> getUnpassableTiles() {
		return unpassableTiles;
	}

	public int getWidth() {
		return width;
	}

	public int getHeight() {
		return height;
	}
	
	public void draw(Canvas canvas) {
		for (Tile tile : getMap()) {
			tile.draw(canvas);
		}
	}
}
